{{useCss "/app-pages/css/modules.scss"}}
<div class="modules">
    {{#each $Cache.modules.module_list}}
    <div class="module">
        <div class="title">
            <href to="/postlist.html?_module={{_id}}">{{name}}</href>
        </div>
        <div class="contents">
            {{#if post_list.length}}
            {{#each post_list}}
            <div class="item">
                <div class="headimg">
                    <img bind-src="{{preview_img||'/images/public/08_avatar_small.jpg'}}?imageView2/1/w/45/h/45" />
                </div>
                <div class="content">
                    <div class="num">{{replytotal||0}}/{{viewtotal||0}}</div>
                    <div class="ctitle">
                        <href to="/article.html?_id={{_id}}">{{title}}</href>
                    </div>
                    <div class="mod">{{_module_name}}</div>
                    <div class="author">{{creater.info.name||creater.name}}，{{#Time createtime}}</div>
                </div>
            </div>
            {{/each}}
            
            {{#else}}
            <div class="item">
                <p>此版块还未创建话题</p>
            </div>
            {{/if}}
        </div>
    </div>
    {{/each}}
</div>
